package com.ysd.lis.entity.eq;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableName;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysd.lis.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 设备点检记录
 * </p>
 *
 * @author WH
 * @since 2024-08-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("EQ_SPOTCHECK_TASK")
public class EqSpotcheckTask extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 巡检计划Id
     */
    @TableField("PLAN_ID")
    private String planId;

    /**
     * 任务编号
     */
    @TableField("CODE")
    private String code;

    /**
     * 任务名称
     */
    @TableField("NAME")
    private String name;

    /**
     * 检验方式
     */
    @TableField("TYPE")
    private String type;

    /**
     * 检验方式说明
     */
    @TableField("TYPE_DESC")
    private String typeDesc;

    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;

    /**
     * 执行人code
     */
    @TableField("HANDLER")
    private String handler;

    /**
     * 执行人
     */
    @TableField("HANDLER_NAME")
    private String handlerName;

    /**
     * 计划状态0 待检 5在检 10已检
     */
    @TableField("STATUS")
    private String status;

    /**
     * 开始时间
     */
    @TableField("BEGIN_TIME")
    private Timestamp beginTime;

    /**
     * 结束时间
     */
    @TableField("END_TIME")
    private Timestamp endTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(fill = FieldFill.UPDATE)
    private Timestamp planDate;


    @TableField(exist = false)
    private long overdue;

    @TableField(exist = false)
    private List<EqSpotcheckTaskEq> spotcheckTaskEqList;

}
